package net.es.weathermap.http;

public class LatLngInfo {
    private Double latNW;
    private Double latSE;
    private Double lngNW;
    private Double lngSE;
    private Double latDelta;
    private Double lngDelta;
    private Double latCenter;
    private Double lngCenter;

    // TODO:  null checks
    public void setLatDelta() {
        this.latDelta = Math.abs(this.latSE - this.latNW);
    }

    public void setLngDelta() {
        this.lngDelta = Math.abs(this.lngSE - this.lngNW);
    }

    public void setLatCenter() {
        this.latCenter = this.latSE+(this.latDelta/2.0D);
    }

    public void setLngCenter() {
        this.lngCenter = this.lngNW+(this.lngDelta/2.0D);
    }

    public Double getLatNW() {
        return this.latNW;
    }

    public void setLatNW(Double latNW) {
        this.latNW = latNW;
    }

    public Double getLatSE() {
        return this.latSE;
    }

    public void setLatSE(Double latSE) {
        this.latSE = latSE;
    }

    public Double getLngNW() {
        return this.lngNW;
    }

    public void setLngNW(Double lngNW) {
        this.lngNW = lngNW;
    }

    public Double getLngSE() {
        return this.lngSE;
    }

    public void setLngSE(Double lngSE) {
        this.lngSE = lngSE;
    }

    public Double getLatDelta() {
        return this.latDelta;
    }

    public void setLatDelta(Double latDelta) {
        this.latDelta = latDelta;
    }

    public Double getLngDelta() {
        return this.lngDelta;
    }

    public void setLngDelta(Double lngDelta) {
        this.lngDelta = lngDelta;
    }

    public void setLatCenter(Double latCenter) {
        this.latCenter = latCenter;
    }

    public Double getLatCenter() {
        return this.latCenter;
    }

    public void setLngCenter(Double lngCenter) {
        this.lngCenter = lngCenter;
    }

    public Double getLngCenter() {
        return this.lngCenter;
    }
}
